export default class Events {

  static groupId = '5adf1ac790bf7f1a14bf80d8'

  static _actId: string[] = [
    '5ae1c04b90bf7f1a14bf830f',
    '5ae1c08f90bf7f1a14bf8310',
    '5ae2e0b590bf7f1a14bf837e'
  ]

  static _rewardIds: string[][] = [
    [
      '5aeaf75390bf7f1a14bf84f8'
    ],
    [
      '5ae2e08290bf7f1a14bf837d',
      '5ae30b9c90bf7f1a14bf838e',
      '5ae30c1a90bf7f1a14bf8395'
    ],
    [
      '5aeaf82b90bf7f1a14bf90bd',
      '5aeaf88090bf7f1a14bf90c0',
      '5aeaf8dd90bf7f1a14bf90c3',
      '5aeaf94b90bf7f1a14bf90c8',
      '5aeaf98f90bf7f1a14bf90cb',
      '5aeaf9db90bf7f1a14bf90ce',
      '5aeafa4190bf7f1a14bf90db'
    ]
  ]

  protected _eventIndex: number

  get actId() {
    return Events._actId[this._eventIndex]
  }

  get rewardId(): string[] {
    return Events._rewardIds[this._eventIndex]
  }

  private _infos: InfoState[] = []
  set info(info) {
    this._infos[this._eventIndex] = info
  }
  get info(): InfoState {
    return this._infos[this._eventIndex]
  }

  private _historys: CdkeyState[][] = []
  set history(history) {
    this._historys[this._eventIndex] = history
  }

  get history(): CdkeyState[] {
    return this._historys[this._eventIndex]
  }

}